package com.wsl.mybatiscustomframe.session;

import java.util.List;

/**
 * packageName com.wsl.mybatiscustomframe.session  SqlSession
 *
 * @author victor
 * @version JDK 8
 * @date 2024/7/11
 * @description TODO
 */
public interface SqlSession {


    /**
     * 查询所有的方法 select * from user where username like '%aaa%' and sex = ''
     * 参数1：唯一标识
     * 参数2：入参
     */
    public <E> List<E> selectList(String statementId, Object parameter) throws
            Exception;
    /**
     * 查询单个的方法
     */
    public <T> T selectOne(String statementId,Object parameter) throws
            Exception;

}
